package com.hbk.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

public class NewsVo {

    @Data
    public static class ListVo{
        private String newsId;
        private String title;           //标题
        /**
         新闻类型
         */
        private Integer type;
        private Integer state;          //新闻状态(0:未发布, 1:已发布)
        private String createTime;        //创建时间
        private String publishTime;       //发布时间
        private Integer orderNum;         //排序
        private Integer logicOrder;       //逻辑排序
    }

    @Data
    public static class GetVo{
        private String newsId;
        private String title;
        private String summary;         //摘要
        private Integer type;
        private Integer state;
        private String createTime;
        private String content;
        private Integer orderNum;         //排序
        private Integer logicNum;         //逻辑序号
    }

    @Data
    public static class WebListVo{
        private String title;
        private String time;
        private String newsId;
    }

    @Data
    public static class DetailVo{
        private String title;
        private Integer type;
        private String publishTime;
        private String content;
    }

    @Data
    public static class OtherListVo{
        private String contentId;
        private String title;
        private String createTime;
        private String updateTime;
        private Integer attachCount;
    }

    @Data
    public static class GetOtherVo{
        private String contentId;
        private String content;
        private List<AttachVo> attachList = new ArrayList<>();
    }

    @Data
    public static class AttachVo{
        private String name;
        private String url;
    }


    @Data
    public static class PageListVo{
        private String newsId;
        private String title;           //标题
        private String summary;
//        private String imgViewUrl;      //直接访问的图片地址
        private String publishTime;       //发布时间
    }

}
